import { Spin } from 'antd'
import { FC } from 'react'
import loading_less from './index.module.less'
import { loading } from '@/store/modules/user'
import { useAppSelector } from '@/hooks/stroe'
const Loading: FC = () => (
  <div className={loading_less.loading}>
    <Spin tip="Loading..." spinning={useAppSelector(loading)}></Spin>
  </div>
)

export default Loading
